package org.ee.system.domain;

import jakarta.persistence.Embeddable;
import org.hibernate.annotations.Comment;

import java.io.Serializable;

/**
 * User-Role 复合组键
 *
 * @Author jokr
 * @Date 2025/8/26 下午5:16
 */
@Embeddable
public class UserRoleId implements Serializable {
    @Comment("用户ID")
    private Long userId;
    @Comment("角色ID")
    private Long roleId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
